<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <input type="hidden" name="update_time" value="{$row.update_time|default=''}">
        <div class="operate-bar">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>
                {:lang('common.btn_save')}
            </button>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('role.name')}</label>
            <div class="layui-input-block">
                <input type="text" name="name" class="layui-input" lay-verify="required"
                       placeholder="{:lang('common.input')}{:lang('role.name')}" value="{$row.name|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('role.type')}</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required" default-value="{$row.type|default=''}"
                        data-select-type="role_type">
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('common.sort')}</label>
            <div class="layui-input-inline">
                <input type="text" name="sort" class="layui-input" lay-verify="onlyInteger"
                       placeholder="{:lang('common.input')}{:lang('common.sort')}" value="{$row.sort|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">{:lang('common.status')}</label>
            <div class="layui-input-block">
                <select name="status" lay-verify="required" default-value="{$row.status|default=''}"
                        data-select-type="status">
                </select>
            </div>
        </div>
    </form>
</div>
<script>
    layui.use(['myCommon'], function () {
        let myCommon = layui.myCommon;
        myCommon.listen();
    });
</script>
